package com.codejam.gof.decrator.concrete;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  https://www.bilibili.com/video/BV1sh411R7si?p=74&spm_id_from=pageDriver
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public abstract class Drink {

    public String desc;

    private float price = 0.0f;


    //计算费用的抽象方法
    public abstract float cost();
}
